package utils;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement
public class Options {
	String ip_addr;
	String user_name;
	int port;
	static Options instance=null;
	
	public static Options getInstance(){
		if(instance==null){
			instance = new Options();
		}
		return instance;
	}
	
	public static void setOptions(Options o){
		instance = o;
	}
	
	private void Options(){
	}
	
	
	public String getIp_addr() {
		return ip_addr;
	}
	
	@XmlElement
	public void setIp_addr(String ip_addr) {
		this.ip_addr = ip_addr;
	}
	public String getUser_name() {
		return user_name;
	}
	@XmlElement
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public int getPort() {
		return port;
	}
	@XmlElement
	public void setPort(int port) {
		this.port = port;
	}
	
	
}
